//package smartterracedfieldsolution.smartteracedfieldsolution.common.exception;
//
//import org.springframework.web.bind.annotation.ControllerAdvice;
//import org.springframework.web.bind.annotation.ExceptionHandler;
//import org.springframework.web.bind.annotation.ResponseBody;
//import smartterracedfieldsolution.smartteracedfieldsolution.common.result.Result;
//
//@ControllerAdvice
//public class GlobalExceptionHandler {
//    @ExceptionHandler(Exception.class)
//    @ResponseBody
//    public Result<String> exception(Exception e) {
//        e.printStackTrace();
//        return Result.fail(500, "服务器内部错误");
//    }
//}
